// pages/home/home.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    /*产品*/
    list:[{id:1,url:"https://www.konka.com/public/images/c7/26/8b/ce0bc5e523031e62e5b88549932184d7677daa48.jpg?54618_OW1140_OH370",title:"电视"},
    {id:2,url:"https://www.konka.com/public/images/c8/94/3a/dc9375e40a8257e5e29a7c8483612f600a11d6fb.jpg?55155_OW1140_OH370",title:"冰洗"},
    {id:3,url:"https://www.konka.com/public/images/82/90/fe/d6577b8f7805cdec55e4a750f7643a6e387f23a3.jpg?88944_OW1140_OH370",title:"智能生活"},
    {id:4,url:"https://www.konka.com/public/images/ca/66/45/1fb1ac2b31f810faaa58abdab7eea9877e404b1d.jpg?86664_OW1140_OH370",title:"K迷优品"}],

    /*明星产品*/
    starProduct:[
    {id:1,img_url:"https://img10.360buyimg.com/n1/jfs/t1/1173/29/11993/153478/5bd174cbE3b3e472d/6e42d1b95de9952f.jpg!q90",title:"LED43X8S 43寸无边全面屏",price:"¥2199"},
    {id:1,img_url:"https://img10.360buyimg.com/n1/jfs/t1/1173/29/11993/153478/5bd174cbE3b3e472d/6e42d1b95de9952f.jpg!q90",title:"LED43X8S 43寸无边全面屏",price:"¥2199"},
    {id:1,img_url:"https://img10.360buyimg.com/n1/jfs/t1/1173/29/11993/153478/5bd174cbE3b3e472d/6e42d1b95de9952f.jpg!q90",title:"LED43X8S 43寸无边全面屏",price:"¥2199"},
    {id:1,img_url:"https://img10.360buyimg.com/n1/jfs/t1/1173/29/11993/153478/5bd174cbE3b3e472d/6e42d1b95de9952f.jpg!q90",title:"LED43X8S 43寸无边全面屏",price:"¥2199"},
    {id:1,img_url:"https://img10.360buyimg.com/n1/jfs/t1/1173/29/11993/153478/5bd174cbE3b3e472d/6e42d1b95de9952f.jpg!q90",title:"LED43X8S 43寸无边全面屏",price:"¥2199"},
    {id:1,img_url:"https://img10.360buyimg.com/n1/jfs/t1/1173/29/11993/153478/5bd174cbE3b3e472d/6e42d1b95de9952f.jpg!q90",title:"LED43X8S 43寸无边全面屏",price:"¥2199"}],

    /*官方活动*/
    officialActivity: ["https://www.konka.com/public/images/4b/d7/fc/5bf68e1154bb773f110d496614d39400383e7c10.jpg?02940_OW1920_OH500"],
    /*九宫格*/
    navitems:[
    {id:1,img_url:"../image/1.png",ziti:"电视"},
    {id:2,img_url:"../image/2.png",ziti:"冰箱"},
    {id:3,img_url:"../image/3.png",ziti:"洗衣机"},
    {id:4,img_url:"../image/4.png",ziti:"生活电器"},
    {id:5,img_url:"../image/5.png",ziti:"手机"},
    {id:6,img_url:"../image/6.png",ziti:"周边硬件"},
    {id:7,img_url:"../image/7.png",ziti:"K迷优品"},
    {id:8,img_url:"../image/8.png",ziti:"积分商城"}],

    /*轮播图*/
    lunbotu: [{ id: 1, url_img:"https://www.konka.com/public/images/4b/d7/fc/5bf68e1154bb773f110d496614d39400383e7c10.jpg?02940_OW1920_OH500"},
      { id: 2, url_img:"https://www.konka.com/public/images/a2/ed/7d/6c71b3eeb8212fe620988e7807e82dcd7bca937b.jpg?06721_OW1920_OH500"},
    {id:3, url_img:"https://www.konka.com/public/images/48/08/67/05d44d5053ffc18eaa923f74875446d72ef37355.jpg?45936_OW1920_OH500"}]
    /*搜索框假数据*/
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },
  suo:function(event){
    console.log("我是搜索商品");
  }
})